<template>
  <div class="header">
    <span class="icon"></span>
    <h1 class="text">Chicken Music</h1>
    <router-link class="mine" to="/user">
      <i class="icon-mine"></i>
    </router-link>
  </div>
</template>

<script>
export default {
  name: 'm-header'
}
</script>

<style lang="scss" scoped>
.header{
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: $color-theme;
  .icon{
    width: 30px;
    height: 32px;
    //使用mixin
    @include bg-image('logo');
    background-size: 100% 100%;
    margin-right: 8px;
    .text{
      font-size: $font-size-large;
    }
  }
  .mine{
    position: absolute;
    top: 0;
    right: 0;
    padding: 12px;
    font-size: $font-size-large-x;
    color: $color-theme;
  }
}
</style>
